package com.banksoft.front.bean;

import com.banksoft.admin.entity.Order;
import com.banksoft.admin.entity.User;

import java.util.Comparator;

/**
 * Created by vanjoger on 2017/3/18.
 */
public class UserCompare implements Comparator{
    @Override
    public int compare(Object o1, Object o2) {
        User user1 = (User) o1;
        User user2 = (User) o2;
        return user1.getCreateTime().compareTo(user2.getCreateTime());
    }
}
